package schemadesignsimplefactory;

public class OperationFactory {

	public static Operation createOperate(String operate) {
		switch (operate) {

		case "+":
			return new OperationAdd();
		case "-":
			return new OperationSub();
		default:
			return null;
			
		}
	}

}
